export default {   
	routeToLogin(recommendId) {
	    uni.navigateTo({
			url:"/pages/login/index?recommendId="+recommendId
		})
	},	
	router(route, method = 'navigateTo') {
		if (method == 'navigateTo') {
			uni.navigateTo({
				url: route
			});
		}
		// 关闭当前页面,跳转
		if (method == 'redirectTo') {
			uni.redirectTo({
				url: route
			});
		}
		// 关闭所有页面直接跳转
		if (method == 'reLaunch') {
			uni.reLaunch({
				url: route
			});
		}
		// 跳转tabBar页面
		if (method == 'switchTab') {
			uni.switchTab({
				url: route
			});
		}
	}
	
	
}